package com.micro.center;

import com.micro.common.config.CenterAuthConfig;
import com.micro.common.constant.Common;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;


/**
 * @author pan.shun
 * @since 2022/6/15 16:28
 */
@Slf4j
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan({
        Common.PackageClassName.MICRO_COMMON,
        Common.PackageClassName.MICRO_CENTER
})
@Import(CenterAuthConfig.class)
public class CenterApplication {

    public static void main(String[] args) {
        SpringApplication.run(CenterApplication.class, args);
    }
}
